package unit5.part4;

public class AbstractTwoTest {
    public static void main(String[] args) {
        FootBall footBall = new FootBall();
        footBall.run();
    }
}

abstract class Game {
    abstract void start();
    abstract void play();
    abstract void end();
    void run() {
        start();
        play();
        end();
    }
}

class FootBall extends Game {
    void start() {
        System.out.println("开始足球赛");
    }
    void play() {
        System.out.println("足球比赛中");
    }
    void end() {
        System.out.println("结束足球赛");
    }
}
